﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElingOA6_Admin_DSJCJ.Model
{
    /// <summary>
    /// PaperTopic:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class PaperTopic
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public PaperTopic()
        {
        }
        #region Model
        /// <summary>
        /// 题目编号
        /// </summary>
        public decimal FPaperId
        {
            set;
            get;
        }
        /// <summary>
        /// 题目主题
        /// </summary>
        public string FTopic
        {
            set;
            get;
        }
        /// <summary>
        /// 题目主题类型
        /// </summary>
        private string _ftopictype;
        /// <summary>
        /// 题目主题类型
        /// </summary>
        public string FTopicType
        {
            set { _ftopictype = value; }
            get { return _ftopictype; }
        }
        /// <summary>
        /// 题目主题编号
        /// </summary>
        public decimal FPaperTopicId
        {
            set;
            get;
        }
        /// <summary>
        /// 标准答案
        /// </summary>
        public string FStdAnswer
        {
            set;
            get;
        }
        /// <summary>
        /// 简答题行数
        /// </summary>
        public int? FShortAnswerCount
        {
            set;
            get;
        }
        /// <summary>
        /// 操作日期
        /// </summary>
        public DateTime? FPubDate
        {
            set;
            get;
        }
        /// <summary>
        /// 操作部门
        /// </summary>
        public string FPubDeptNo
        {
            set;
            get;
        }
        /// <summary>
        /// 操作人员
        /// </summary>
        public string FPubEmpNo
        {
            set;
            get;
        }
        /// <summary>
        /// 操作电脑IP
        /// </summary>
        public string FPubIp
        {
            set;
            get;
        }
        #endregion Model


        #region 增加的字段
        /// <summary>
        /// 题目
        /// </summary>
        private string _ftitle;
        /// <summary>
        /// 题目
        /// </summary>
        public string FTitle
        {
            get { return _ftitle; }
            set { _ftitle = value; }
        }
        /// <summary>
        /// 题目类别编号
        /// </summary>
        private string _fpaperclsno;
        /// <summary>
        /// 题目类别编号
        /// </summary>
        public string FPaperClsNo
        {
            set { _fpaperclsno = value; }
            get { return _fpaperclsno; }
        }

        /// <summary>
        /// 题目主题类型名字
        /// </summary>
        public string FTopicTypeName
        {
            get
            {
                if (_ftopictype == "R")
                {
                    return "单选题";
                }
                else if (_ftopictype == "C")
                {
                    return "多选题";
                }
                else if (_ftopictype == "A")
                {
                    return "简答题";
                }
                else
                {
                    return string.Empty;
                }

            }
        }

        #endregion

    }
}
